package com.yuwei.smartpark

import androidx.lifecycle.MutableLiveData
import com.tencent.smtt.utils.l
import com.yuwei.base.BaseViewModel
import com.yuwei.http.ApiService
import com.yuwei.http.entity.AccessIdEntity
import com.yuwei.http.entity.AccessIdParam
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class SplashViewModel @Inject constructor(
    val apiService: ApiService
): BaseViewModel(){
    val getAccessIdSuccess by lazy { MutableLiveData<AccessIdEntity>() }
    fun getAccessId(param : AccessIdParam){
        executeNetwork({
            apiService.getAccessId(param)
        },getAccessIdSuccess::postValue)
    }
}